package com.leonzhangxf.ioc.event.publication;

import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * An hello world event.
 *
 * @author leonzhangxf
 */
public class HelloWorldEvent extends ApplicationEvent {

    @Getter
    private String message;

    /**
     * Create a new HelloWorldEvent.
     *
     * @param source  the object on which the event initially occurred (never {@code null})
     * @param message the message need to be multicast.
     */
    public HelloWorldEvent(Object source, String message) {
        super(source);
        this.message = message;
    }
}
